package com.fjnu.teaching;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/12 9:03
 *
 * java bean/pojo:
 *    entity/model
 *    vo
 *    dto
 *
 *
 *
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher implements Serializable {

    @Value("001")
    private String id ;
    @Value("zhangsan")
    private String name ;

    /**
     * A simple factory to create a teacher
     * @return
     */
    public static Teacher getTeacher() {
        return new Teacher() ;
    }




}
